# Contributor: Nulo <git@nulo.in>
# Maintainer: Nulo <git@nulo.in>
pkgname=geckodriver
pkgver=0.31.0
pkgrel=0
pkgdesc="Proxy for using W3C WebDriver compatible clients to interact with Gecko-based browsers."
url="https://github.com/mozilla/geckodriver"
# s390x: limited by cargo
arch="all !s390x !riscv64"
license="MPL"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/geckodriver/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cargo build --release --bin geckodriver
}

check() {
	cargo test --release
}

package() {
	install -Dm0755 target/release/$pkgname -t "$pkgdir"/usr/bin
}

sha512sums="
e4723dd365f71e6209f54742c09d73773ea17801ec41913aab3dc4c63667001fd583544d4f41241aead19433a790de161be4c74881fb810e49b7925f28ac495a  geckodriver-0.31.0.tar.gz
"
